package com.study.servlet.domain;

import java.io.Serializable;
import java.util.Arrays;

/**
* @Name: User
* @Description: 页面表单JavaBean值对象
* @Author: 李超	lc_jack@foxmail.com
* @CreateDate: 2017-3-1 下午5:20:31 
* @Version: V1.0
 */
public class User implements Serializable {
	
	private static final long serialVersionUID = 4785083206821796451L;
	
	private String name ;
	private String password ;
	private boolean gender ;
	private boolean married ;
	private String city ;
	private String[] hobby ;
	private String description ;
	
	public User() { }
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public boolean isGender() {
		return gender;
	}
	public void setGender(boolean gender) {
		this.gender = gender;
	}
	public boolean isMarried() {
		return married;
	}
	public void setMarried(boolean married) {
		this.married = married;
	}
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String[] getHobby() {
		return hobby;
	}
	public void setHobby(String[] hobby) {
		this.hobby = hobby;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "User [name=" + name + ", password=" + password + ", gender="
				+ gender + ", married=" + married + ", city=" + city
				+ ", hobby=" + Arrays.toString(hobby) + ", description="
				+ description + "]";
	}
}
